<?php

/*
 *
 *
 * --------------------------------------------------------------------
 * Copyright (c) 2001 - 2011 Openfiler Project.
 * --------------------------------------------------------------------
 *
 * Openfiler is an Open Source SAN/NAS Appliance Software Distribution
 *
 * This file is part of Openfiler.
 *
 * Openfiler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * Openfiler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Openfiler.  If not, see <http://www.gnu.org/licenses/>.
 *
 * --------------------------------------------------------------------
 *
 *
 */

	require("pre.inc");
	include("authenticated.inc");
	include("scstFC.inc.php"); 




	generic_header(array("title" => _("Status : Fibre Channel ")));
	single_begin(array());

?>

<script src="utility.js" type="text/javascript" language="JavaScript">
</script>
<script src="popup.js" type="text/javascript" language="JavaScript">
</script>

<p>&nbsp;</p>
<?php
        nested_tab_begin("C_STATUS_FC");
	print("<h3 align=\"center\">Fibre Channel Target status</h3>\n");
	?>
	<table cellpadding="10" cellspacing="0" border="0" width="100%">
                <tr>
                        <td>
			<?php 
				$targetConfig = new SCSTFC(); 
				if ($targetConfig->isRunning) {
					echo $targetConfig->printStatus();
				}

				else {
					?>
					<div style="width: 300px; margin-left: auto; margin-right: auto;">
					<div class="messageblock messageblock-warning">
						<div class="messageblock-internal">
						<p>Fibre Channel Target Service Not Running</p>
						</div>
					</div>
					</div>
					<?php
				}
			?>
			</td>
		</tr>
	</table>
	<?php
	nested_tab_end();

	single_end(array());
	generic_footer(array());
?>
